package core.compagnie;

import java.io.ObjectOutputStream.PutField;
import java.util.Hashtable;

public class MetaCompagnie {
	
	private String nom;
	private Hashtable <String, CompAerienne> compagnies;
	/**
	 * @param nom
	 */
	public MetaCompagnie(String nom) {
		super();
		this.nom = nom;
	}
	
	/**
	 * @param nom
	 * @param compagnies
	 */
	public MetaCompagnie(String nom, Hashtable<String, CompAerienne> compagnies) {
		super();
		this.nom = nom;
		this.compagnies = compagnies;
	}
	
	public void addCompagnie (CompAerienne c) {
		compagnies.put(c.getNom(), c);
	}

}
